﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.RenderTextureCreationFlags
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>Set of flags that control the state of a newly-created RenderTexture.</para>
  /// </summary>
  [Flags]
  public enum RenderTextureCreationFlags
  {
    /// <summary>
    ///   <para>Set this flag to allocate mipmaps in the RenderTexture. See RenderTexture.useMipMap for more details.</para>
    /// </summary>
    MipMap = 1,
    /// <summary>
    ///         <para>Determines whether or not mipmaps are automatically generated when the RenderTexture is modified.
    /// This flag is set by default, and has no effect if the RenderTextureCreationFlags.MipMap flag is not also set.
    /// See RenderTexture.autoGenerateMips for more details.</para>
    ///       </summary>
    AutoGenerateMips = 2,
    /// <summary>
    ///   <para>When this flag is set, reads and writes to this texture are converted to SRGB color space. See RenderTexture.sRGB for more details.</para>
    /// </summary>
    SRGB = 4,
    /// <summary>
    ///   <para>Set this flag when the Texture is to be used as a VR eye texture. This flag is cleared by default. This flag is set on a RenderTextureDesc when it is returned from GetDefaultVREyeTextureDesc or other VR functions returning a RenderTextureDesc.</para>
    /// </summary>
    EyeTexture = 8,
    /// <summary>
    ///         <para>Set this flag to enable random access writes to the RenderTexture from shaders.
    /// Normally, pixel shaders only operate on pixels they are given. Compute shaders cannot write to textures without this flag. Random write enables shaders to write to arbitrary locations on a RenderTexture.  See RenderTexture.enableRandomWrite for more details, including supported platforms.</para>
    ///       </summary>
    EnableRandomWrite = 16, // 0x00000010
    /// <summary>
    ///   <para>This flag is always set internally when a RenderTexture is created from script. It has no effect when set manually from script code.</para>
    /// </summary>
    CreatedFromScript = 32, // 0x00000020
    /// <summary>
    ///         <para>Clear this flag when a RenderTexture is a VR eye texture and the device does not automatically flip the texture when being displayed. This is platform specific and
    /// It is set by default. This flag is only cleared when part of a RenderTextureDesc that is returned from GetDefaultVREyeTextureDesc or other VR functions that return a RenderTextureDesc. Currently, only Hololens eye textures need to clear this flag.</para>
    ///       </summary>
    AllowVerticalFlip = 128, // 0x00000080
    /// <summary>
    ///   <para>When this flag is set, the engine will not automatically resolve the color surface.</para>
    /// </summary>
    NoResolvedColorSurface = 256, // 0x00000100
    /// <summary>
    ///   <para>Set this flag to mark this RenderTexture for Dynamic Resolution should the target platform/graphics API support Dynamic Resolution. See ScalabeBufferManager for more details.</para>
    /// </summary>
    DynamicallyScalable = 1024, // 0x00000400
    /// <summary>
    ///   <para>Setting this flag causes the RenderTexture to be bound as a multisampled texture in a shader. The flag prevents the RenderTexture from being resolved by default when RenderTexture.antiAliasing is greater than 1.</para>
    /// </summary>
    BindMS = 2048, // 0x00000800
    /// <summary>
    ///   <para>This flag is always set internally when a RenderTexture is sharable with external graphics devices. It has no effect when set manually from script code.</para>
    /// </summary>
    APISharable = 16384, // 0x00004000
  }
}
